Quick Reply Message
This message type provides the recipient with up to three buttons, which can be pressed. A button press causes a response to be sent back in a callback.
Object | Description |
---|---|
header | Optional. For button interactive messages, you can use the following header types: text, video, image or document. Once you select your type, add the corresponding objects/fields with more information: - For video, image, and document types: Add a media object. - For text type: Add a text field with the desired content. Example: |
body | Required. |
footer | Optional. |
action | Required. You must add at least one button, and include type, title, and id for your buttons. You cannot add more than 3 buttons. Maximun of 20 characters for title. You cannot have leading or trailing spaces when setting the ID. |
Payload
{
"recipient_type": "individual",
"to": "918892532751",
"type": "interactive",
"interactive": {
"type": "button",
"header": {
"type": "text",
"text": "hello "
},
"body": {
"text": "your-text-body-content"
},
"footer": {
"text": "your-text-footer-content"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "id-1",
"title": "First Buttons Title"
}
},
{
"type": "reply",
"reply": {
"id": "id-2",
"title": "Second Buttons Title"
}
}
]
}
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "xxxxx",
"callbackDlrUrl": "https:xxx.com",
}
}
Note : Calback URL is a optional paramter . Please use when you want to change the default URL(configured through smartta). It will only chnage the domain name othere paratemters will be same as configurated in smartta.